package cn.yqm.user.action;

import javax.servlet.http.HttpServletRequest;

import cn.yqm.frame.action.Action;
import cn.yqm.frame.template.FormTemplate;
import cn.yqm.user.model.User;

public class UserAction implements Action {

	@Override
	public String execute(HttpServletRequest request, FormTemplate form) {
		User user = (User)form;
		
		if ("你好".equals(user.getUsername()) && "你好".equals(user.getPassword())) {
			return "success";
		}
		return "false";
	}

}
